package com.hspedu.extends_.improve;

/**
 * @Author Stringzhua
 * @Date 2024/3/1 17:01
 * description:父类
 * 是Pupil和Graduate的父类
 */
public class Student {
    //共有属性
    public String name;
    public int age;
    private double score;

    //共有方法
    public void setScore(double score) {
        this.score = score;
    }

    public void showInfo() {
        System.out.println("小学生名字是" + name + "  年龄" + age + "  成绩" + score);
    }
}
